package com.nervenets.web.controller.handler.user.user;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserAuthParams extends TokenParams {
    @NeedValidation(type = Type.POSITIVENUMBER, description = "地区ID")
    private int areaId;
    @NeedValidation(type = Type.NOTEMPTY, description = "姓名")
    private String name;
    @NeedValidation(type = Type.NOTEMPTY, description = "身份证号码")
    private String idNumber;
    @NeedValidation(type = Type.NOTEMPTY, description = "身份证正面")
    private String frontOfId;
    @NeedValidation(type = Type.NOTEMPTY, description = "身份证背面")
    private String backOfId;
}
